package struct;

public class DoWhlie02 {
    public static void main(String[] args) {
        int i=0;
        int  sum=0;
        do{
            i++;
            sum=sum+i;
        }while(i<100);  //若i<=100,输出结果就为101
        System.out.println(sum);
    }
}
